import request from "@/utils/request";

export function uploadAuthImage(file,type) {
  return request({
    url: "/enterprise/account/yima/upload/image/"+type,
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data"
    },
    data: file
  });
}

// 翼码省列表
export function listProvince(params) {
  return request({
    url: "/enterprise/account/yima/district/province/list",
    method: "get",
    params: params
  });
}

// 翼码市列表
export function listCity(provinceCode) {
  return request({
    url: "/enterprise/account/yima/district/city/"+provinceCode,
    method: "get",
  });
}

// 翼码区列表(省code)(区code)
export function listArea(provinceCode, cityCode) {
  return request({
    url: `/enterprise/account/yima/district/area/${provinceCode}/${cityCode}`,
    method: "get",
  });
}

// 翼码银行列表
export function listBank(params) {
  return request({
    url: "/enterprise/account/yima/bank/list",
    method: "get",
    params: params
  });
}

// 翼码银行支行列表
export function listBankBranch(params) {
  return request({
    url: "/enterprise/account/yima/bankBranch/list",
    method: "get",
    params: params
  });
}
